/**
 * UserDao.java
 *
 *
 * $LastChangedBy: allen $
 * $LastChangedDate: 2007-12-07 15:48:34 +0800 $
 * $Revision: 1399 $
 */
package com.myspace.dao;

import java.util.List;
import java.util.Map;

import com.myspace.domain.User;
import com.myspace.common.exception.ErrorPasswordException;
import com.myspace.common.exception.UserNotFoundException;

/**
 * Dao interface for user
 *
 * @author Allen.Chen
 */
public interface UserDao extends GenericDao<User, Long>
{
	User findByNameAndPassword(User user) throws UserNotFoundException,
			ErrorPasswordException;

	List<User> getLastUpdated();

	List<User> getHot();

	User findByName(String friendName) throws UserNotFoundException;

	Map<Long ,User> findbyIds(Long[] ids);
}
